import 'package:common_utils/common_utils.dart';
import 'package:get/get.dart';

import '../../../../entity/purchass_entity.dart';

enum PurchaseType {
  add,
  detail
}

class PurchaseAddState {

  var purchase = PurchaseEntity().obs;
  var recentNames = [].obs;
  var count = 3.obs;
  var type = PurchaseType.add;
  var isEdit = false.obs;

  PurchaseAddState() {
    ///Initialize variables
    purchase.value.recordTime = DateUtil.formatDate(DateTime.now(), format: "yyyy-MM-dd HH:mm:ss");
    purchase.value.itemList = [PurchaseItem()];
  }
}
